package test0321;

import java.util.Scanner;

public class test005 {

	public static void main(String[] args) {
	String userPass="";
	final String PASSWORD="123456";
	Scanner input=new Scanner(System.in);
	do {
	System.out.print("请输入程序密码");
	userPass=input.nextLine();
	System.out.println();
	}
	while(!userPass.equals(PASSWORD));
	System.out.println("程序密码正确，请继续执行！");

	}

}
